---
layout: single
property_name: overflow
---

<section id="overflow" class="property">
  <header class="property-header">
    <nav class="property-links">
      <a class="property-links-direct" href="{{site.url}}/property/overflow/" data-property-name="overflow" data-tooltip="Single page for this property">Permalink</a>
      <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="overflow">Share</a>
      <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/overflow" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
    </nav>
    <h2 class="property-name">
      <a href="#overflow"><span>#</span>overflow</a>
    </h2>
    <div class="property-description">
      <p>Defines how overflowing content on both horizontal and vertical axis is displayed.</p>

    </div>

  </header>

    <style type="text/css">.overflow { height: 120px;overflow: hidden;padding: 0; }</style>


    <style type="text/css">.overflow .block { height: 80px;width: 240px; }.overflow .block span { display: block;white-space: nowrap; }</style>


    <section class="example">
      <header class="example-header">
        <p class="example-name">
            <code class="example-default" data-tooltip="This is the property's default value">default</code>


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="overflow: visible;">overflow: visible;</code>
        </p>
        <div class="example-description">
          <p>The overflowing content is <strong>visible</strong>, while the element itself stays at the specified height.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div overflow " id="overflow-visible"><p class="block block--alpha"><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</span><span>Etiam semper diam at erat pulvinar, at pulvinar felis blandit.</span><span>Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</span><span>Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</span><span>Pellentesque interdum, nisl nec interdum maximus, augue diam porttitor lorem, et sollicitudin felis neque sit amet erat.</span></p></div>
        </div>
      </aside>
        <style type="text/css">#overflow-visible .block { overflow: visible; }</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="overflow: hidden;">overflow: hidden;</code>
        </p>
        <div class="example-description">
          <p>The overflowing content is <strong>hidden</strong> and can not be accessed.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div overflow " id="overflow-hidden"><p class="block block--alpha"><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</span><span>Etiam semper diam at erat pulvinar, at pulvinar felis blandit.</span><span>Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</span><span>Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</span><span>Pellentesque interdum, nisl nec interdum maximus, augue diam porttitor lorem, et sollicitudin felis neque sit amet erat.</span></p></div>
        </div>
      </aside>
        <style type="text/css">#overflow-hidden .block { overflow: hidden; }</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="overflow: scroll;">overflow: scroll;</code>
        </p>
        <div class="example-description">
          <p>The overflowing content is accessible thanks to a <strong>vertical scrollbar</strong>.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div overflow " id="overflow-scroll"><p class="block block--alpha"><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</span><span>Etiam semper diam at erat pulvinar, at pulvinar felis blandit.</span><span>Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</span><span>Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</span><span>Pellentesque interdum, nisl nec interdum maximus, augue diam porttitor lorem, et sollicitudin felis neque sit amet erat.</span></p></div>
        </div>
      </aside>
        <style type="text/css">#overflow-scroll .block { overflow: scroll; }</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="overflow: auto;">overflow: auto;</code>
        </p>
        <div class="example-description">
          <p>The browser decides whether to display a vertical scrollbar or not.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div overflow " id="overflow-auto"><p class="block block--alpha"><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</span><span>Etiam semper diam at erat pulvinar, at pulvinar felis blandit.</span><span>Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</span><span>Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</span><span>Pellentesque interdum, nisl nec interdum maximus, augue diam porttitor lorem, et sollicitudin felis neque sit amet erat.</span></p></div>
        </div>
      </aside>
        <style type="text/css">#overflow-auto .block { overflow: auto; }</style>
    </section>

</section>
